import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'

//定期借记合同登记

export function regularDebitContractEntrySave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/regularDebitContractManage/RegularDebitContractEntry/save`,
    method: 'post',
    data:data,
  })
}


//定期借记合同登记审核
export const apiUrlConfigApproveQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/regularDebitContractManage/RegularDebitContractApprove/search`,
}

//定期借记合同登记审核明细
export function regularDebitContractApproveDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/regularDebitContractManage/RegularDebitContractApprove/detail`,
    method: 'get',
    params: {id:data.id},
  });
}

//定期借记合同登记审核通过
export function regularDebitContractApproveApprove(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/regularDebitContractManage/RegularDebitContractApprove/approve`,
    method: 'post',
    data: data,
  });
}

//定期借记合同登记审核拒绝
export function regularDebitContractApproveReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/regularDebitContractManage/RegularDebitContractApprove/reject`,
    method: 'post',
    data: data,
  });
}



//定期借记合同查询
export const apiUrlConfigQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/regularDebitContractManage/RegularDebitContractQuery/search`,
}

//定期借记合同查询明细
export function regularDebitContractQueryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/regularDebitContractManage/RegularDebitContractQuery/detail`,
    method: 'get',
    params: {id:data.id},
  });
}







//定期借记合同维护查询
export const apiUrlConfigMaintenanceQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/regularDebitContractManage/RegularDebitContractMaintenance/search`,
}

//定期借记合同维护明细
export function regularDebitContractMaintenanceDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/regularDebitContractManage/RegularDebitContractMaintenance/detail`,
    method: 'get',
    params: {id:data.id},
  });
}

//定期借记合同维护生效
export function regularDebitContractMaintenanceEffective(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/regularDebitContractManage/RegularDebitContractMaintenance/effective`,
    method: 'post',
    data: data,
  });
}

//定期借记合同维护开启
export function regularDebitContractMaintenanceStart(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/regularDebitContractManage/RegularDebitContractMaintenance/start`,
    method: 'post',
    data: data,
  });
}


//定期借记合同维护停用
export function regularDebitContractMaintenancePause(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/regularDebitContractManage/RegularDebitContractMaintenance/pause`,
    method: 'post',
    data: data,
  });
}

//定期借记合同维护注销
export function regularDebitContractMaintenanceCancel(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/regularDebitContractManage/RegularDebitContractMaintenance/cancel`,
    method: 'post',
    data: data,
  });
}







//定期借记合同维护审核查询
export const apiUrlConfigMainApproveQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/regularDebitContractManage/RegularDebitContractMainApprove/search`,
}

//定期借记合同维护审核明细
export function regularDebitContractMainApproveDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/regularDebitContractManage/RegularDebitContractMainApprove/detail`,
    method: 'get',
    params: {oriId:data.oriId},
  });
}

//定期借记合同维护审核通过
export function regularDebitContractMainApproveApprove(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/regularDebitContractManage/RegularDebitContractMainApprove/approve`,
    method: 'post',
    data: { id:data.oriId,audRemarks:data.audRemarks },
  });
}

//定期借记合同维护审核拒绝
export function regularDebitContractMainApproveReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/regularDebitContractManage/RegularDebitContractMainApprove/reject`,
    method: 'post',
    data: { id:data.oriId,audRemarks:data.audRemarks },
  });
}




//定期借记合同登记修改
export const apiUrlConfigModifyQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/regularDebitContractManage/RegularDebitContractModify/search`,
}

//定期借记合同登记修改明细
export function regularDebitContractModifyDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/regularDebitContractManage/RegularDebitContractModify/detail`,
    method: 'get',
    params: {id:data.id},
  });
}

//定期借记合同登记修改
export function regularDebitContractModifyModify(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/regularDebitContractManage/RegularDebitContractModify/modify`,
    method: 'post',
    data: data,
  });
}
